<template>
  <div class="qrcode-container">
    <QRCodeVue :value="qrValue" :size="size" level="H" render-as="svg" />
  </div>
</template>

<script setup lang="ts">
import QRCodeVue from "qrcode.vue";

const props = defineProps({
  value: {
    type: String,
    required: true,
  },
  size: {
    type: Number,
    default: 200,
  },
});

const qrValue = ref(props.value);
</script>

<style scoped>
.qrcode-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
</style>
